# Makefile
# This is a comment (after #).
OBJS = listnode.o main.o 
SRCS = listnode.c listnode.c main.c
CFLAGS = -g -Wall -Wshadow
GCC = gcc $(CFLAGS)
TARGET = main
main: $(OBJS)
	   $(GCC) $(OBJS) -o $(TARGET) # create executable
test: main
	   ./$(TARGET) # execute the program
	   valgrind --leak-check=yes ./$(TARGET) # memory leak?
.c.o:
	$(GCC) -c $*.c
clean:	
	rm -f $(OBJS) $(TARGET)
depend:
	makedepend $(SRCS)
